home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
BIRTHSRC.ZIP
/
RANDOM.INC
< prev
next >
Wrap
Text File
|
1993-11-23
|
2KB
|
55 lines
;╔════════════════════════════════════════════════╗
;║ Name:Random_Number_Generator_________ V01.00 ║
;║ ║
;║ Modified:29-Oct-93 FB ║
;╚════════════════════════════════════════════════╝
;
;**************************************************
random64 dd 423497850,293874509,872340985,720349875,029834709
dd 389735263,249879782,435345234,852938745,982697526
dd 924387349,824624386,423645625,602586386,478557463
dd 101398630,987197471,051798980,798517092,309717542
dd 523778179,801324079,705476523,976215378,913405967
dd 078231980,357243764,320743262,306743789,420970738
dd 437809432,784284784,789017893,478248247,437624367
dd 436984342,362436234,122433436,266802430,984360250
dd 346230523,487023872,436876234,987625978,632874675
dd 432689432,872398243,698259634,062398734,652986324
dd 439084327,623462397,823486567,243729784,376576237
dd 439082364,624397825,398749234,862354987,525268234
dd 342098742,397843269,234983498,986538974
seed1 db 29
seed2 db 63
;--------------------------------------------------
; Random - Random Number Generator
; IN : -
; OUT : - eax
; Modified : eax,ebx
; Vars Used: random64,seed1,seed2 (local cs)
Random PROC
xor ebx,ebx
mov bl,cs:seed1
mov eax,cs:random64[4*ebx]
mov bl,cs:seed2
add eax,cs:random64[4*ebx]
mov cs:random64[4*ebx],eax
inc cs:seed1
and cs:seed1,63
inc cs:seed2
and cs:seed2,63
ret
Random ENDP
;--------------------------------------------------
;**************************************************